package com.itheima.filedemo;

import java.io.File;
import java.io.IOException;

public class FileDemo7 {
    public static void main(String[] args) throws IOException {
        /*File file = new File("FileMoudle\\aaa\\a.txt");
        file.createNewFile();*/

        File file = new File("FileModule\\aaa");
        if (!file.exists()) {
            file.mkdirs();
        }
        File newFile = new File(file, "a.txt");
        newFile.createNewFile();
    }
}
